package sample.business.frame;

import sample.DataHolder;
import sample.business.frame.config.SimpleConfig;
import sample.business.frame.modules.impl.SingleModuleGenerator;
import sample.data.PathInfo;


/**
 * Created by lilongfei on 2017/1/19.
 */
public class SimpleGenerator implements Generator {

    @Override
    public void createProject() throws Exception {
        SingleModuleGenerator.build()
                .setPathInfo((PathInfo) DataHolder.getData("path"))
                .generateProject();
    }

    @Override
    public void createConfig() throws Exception {
        SimpleConfig simpleConfig = SimpleConfig.build().setDirVo((PathInfo) DataHolder
                .getData("path"));
        simpleConfig.createWebConfig();
        simpleConfig.createAppConfig();
    }

    @Override
    public void createTools() throws Exception {

    }

    @Override
    public void createEntity() {

    }

    @Override
    public void createBusiness() {

    }

    @Override
    public void createWeb() {

    }
}
